﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace LongNet.Util
{
    public class Confignation
    {
        /// <summary>
        /// 收费界面是否有返回上一步流程按钮
        /// </summary>
        public static bool ChareHasReturnFlow
        {
            get
            {
                if (System.Configuration.ConfigurationManager.AppSettings["ChareHasReturnFlow"].Trim() == "0")
                {
                    return false;
                }
                else
                {
                    return true;
                }
            }
        }
        /// <summary>
        /// 是否检测加密狗
        /// </summary>
        public static bool IsCheckIKey
        {
            get
            {
                if (System.Configuration.ConfigurationManager.AppSettings["IsCheckIKey"].Trim() == "0")
                {
                    return false;
                }
                else
                {
                    return true;
                }
            }
        }
        /// <summary>
        /// 导入Excel文件路径
        /// </summary>
        public static string ExcelPath
        {
            get
            {
                if (!string.IsNullOrEmpty(System.Configuration.ConfigurationManager.AppSettings["ExcelPath"]))
                {
                    return System.Configuration.ConfigurationManager.AppSettings["ExcelPath"].Trim();
                }
                else
                {
                    return "";
                }
            }
        }
        /// <summary>
        /// 地址调整者
        /// </summary>
        public static string AddressAdjuster
        {
            get
            {
                if (!string.IsNullOrEmpty(System.Configuration.ConfigurationManager.AppSettings["AddressAdjuster"]))
                {
                    return ","+System.Configuration.ConfigurationManager.AppSettings["AddressAdjuster"].Trim()+",";
                }
                else
                {
                    return "";
                }
            }
        }
        /// <summary>
        /// 编辑已批合同人员
        /// </summary>
        public static string EditAppravedContract
        {
            get
            {
                if (!string.IsNullOrEmpty(System.Configuration.ConfigurationManager.AppSettings["EditAppravedContract"]))
                {
                    return "," + System.Configuration.ConfigurationManager.AppSettings["EditAppravedContract"].Trim() + ",";
                }
                else
                {
                    return "";
                }
            }
        }
    }
}
